﻿
        var status = 0;
var ttt = "#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 = "#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 = "#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 = "#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 = "#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 = "#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt6 = "#fUI/UIWindowBT.img/WorldMap/BtQsearch/mouseOver/0#";

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
        cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
        cm.dispose();
    } else if (status == 0) {
        var selStr = "\r\n#e#d您好，本服新增特色副本系列,更多请期待添加..#n#l#k\r\n\r\n";
        //selStr +="\r\n#d======================================================#k\r\n";
        selStr += "#L0#" + ttt6 + " #r#e[NEW]#n#b 挑战老怪 #r 必得#v2049323#.经验.50卷#l\r\n";
        selStr += "#L1#" + ttt6 + " #r#e[NEW]#n#b 黄金寺院 #r\r\n";
        selStr += "#L2#" + ttt6 + " #r#e[NEW]#n#b 卧虎藏龙 #r\r\n";
        selStr += "#L3#" + ttt6 + " #r#e[NEW]#n#b 迷幻之域 #r\r\n";
        selStr += "#L4#" + ttt6 + " #r#e[NEW]#n#b 航海战役 #r\r\n";
        selStr += "#L5#" + ttt6 + " #r#e[NEW]#n#b 我的公主 #r\r\n";
        selStr += "#L6#" + ttt6 + " #r#e[NEW]#n#b 自身影子 #r\r\n";
        selStr += "#L7#" + ttt6 + " #r#e[NEW]#n#b 保卫金猪 #r\r\n";
        selStr += "#L8#" + ttt6 + " #r#e[NEW]#n#b 变异蜈蚣 #r\r\n";
        selStr += "#L9#" + ttt6 + " #r#e[NEW]#n#b 小日本 #r\r\n";
        selStr += "#L10#" + ttt6 + " #r#e[NEW]#n#b 暂定 #r\r\n";


        //selStr += "#L24#" + ttt6 + " #r#b 星星副本#l\r\n";
        selStr += "\r\n";
        //selStr +="\r\n#d======================================================#k\r\n";
        cm.askMenu(selStr);
    } else if (status == 1) {
        switch (selection) {
            case 0:
                cm.dispose();
                cm.warp(932200000);
                break;
            case 1:
                cm.worldSpouseMessage(0x16, "[黄金寺院] ：玩家 " + cm.getChar().getName() + " 进入了挑战室。");
                cm.dispose();
                cm.warp(252030000, 0);
                break;
            case 2:
                cm.dispose();
                cm.openNpc(9900005, 5);
                break;
            case 3:
                cm.dispose();
                cm.openNpc(9070010, 1);
                break;
            case 4:
                cm.dispose();
                cm.warp(865000999);
                break;
            case 5:
                cm.dispose();
                cm.openNpc(9310114, 2);
                break;
            case 6:
                cm.dispose();
                cm.openNpc(0, "自身影子心魔");
                break;
            case 7:
                cm.dispose();
                cm.openNpc(9300006, 1);
                break;
            case 8:
                cm.dispose();
                cm.openNpc(0, "蜈蚣");
                break;
            case 9:
                cm.dispose();
                cm.openNpc(0, "小日本");
                break;
        }
    }
}
